.class public Les/xd0;
.super Ljava/lang/Object;
.source "TreeConnect.java"


# instance fields
.field private a:J

.field private b:Lcom/hierynomus/smbj/common/c;

.field private c:Les/qd0;

.field private final d:Ljava/util/EnumSet;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/EnumSet<",
            "Lcom/hierynomus/smbj/smb2/SMB2ShareCapabilities;",
            ">;"
        }
    .end annotation
.end field

.field private e:Lcom/hierynomus/smbj/connection/a;


# direct methods
.method public constructor <init>(JLcom/hierynomus/smbj/common/c;Les/qd0;Ljava/util/EnumSet;Lcom/hierynomus/smbj/connection/a;)V
    .locals 0
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(J",
            "Lcom/hierynomus/smbj/common/c;",
            "Les/qd0;",
            "Ljava/util/EnumSet<",
            "Lcom/hierynomus/smbj/smb2/SMB2ShareCapabilities;",
            ">;",
            "Lcom/hierynomus/smbj/connection/a;",
            ")V"
        }
    .end annotation

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    iput-wide p1, p0, Les/xd0;->a:J

    .line 3
    iput-object p3, p0, Les/xd0;->b:Lcom/hierynomus/smbj/common/c;

    .line 4
    iput-object p4, p0, Les/xd0;->c:Les/qd0;

    .line 5
    sget-object p1, Lcom/hierynomus/smbj/smb2/SMB2ShareCapabilities;->SMB2_SHARE_CAP_DFS:Lcom/hierynomus/smbj/smb2/SMB2ShareCapabilities;

    invoke-virtual {p5, p1}, Ljava/util/EnumSet;->contains(Ljava/lang/Object;)Z

    .line 6
    sget-object p1, Lcom/hierynomus/smbj/smb2/SMB2ShareCapabilities;->SMB2_SHARE_CAP_CONTINUOUS_AVAILABILITY:Lcom/hierynomus/smbj/smb2/SMB2ShareCapabilities;

    invoke-virtual {p5, p1}, Ljava/util/EnumSet;->contains(Ljava/lang/Object;)Z

    .line 7
    sget-object p1, Lcom/hierynomus/smbj/smb2/SMB2ShareCapabilities;->SMB2_SHARE_CAP_SCALEOUT:Lcom/hierynomus/smbj/smb2/SMB2ShareCapabilities;

    invoke-virtual {p5, p1}, Ljava/util/EnumSet;->contains(Ljava/lang/Object;)Z

    .line 8
    iput-object p5, p0, Les/xd0;->d:Ljava/util/EnumSet;

    .line 9
    iput-object p6, p0, Les/xd0;->e:Lcom/hierynomus/smbj/connection/a;

    return-void
.end method


# virtual methods
.method public a()Les/qd0;
    .locals 1

    .line 8
    iget-object v0, p0, Les/xd0;->c:Les/qd0;

    return-object v0
.end method

.method a(Les/wd0;)V
    .locals 8
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/hierynomus/smbj/transport/TransportException;
        }
    .end annotation

    .line 1
    new-instance v6, Lcom/hierynomus/smbj/smb2/messages/r;

    iget-object v0, p0, Les/xd0;->e:Lcom/hierynomus/smbj/connection/a;

    invoke-virtual {v0}, Lcom/hierynomus/smbj/connection/a;->i()Lcom/hierynomus/smbj/smb2/SMB2Dialect;

    move-result-object v1

    iget-object v0, p0, Les/xd0;->c:Les/qd0;

    invoke-virtual {v0}, Les/qd0;->b()J

    move-result-wide v2

    iget-wide v4, p0, Les/xd0;->a:J

    move-object v0, v6

    invoke-direct/range {v0 .. v5}, Lcom/hierynomus/smbj/smb2/messages/r;-><init>(Lcom/hierynomus/smbj/smb2/SMB2Dialect;JJ)V

    .line 2
    iget-object v0, p0, Les/xd0;->e:Lcom/hierynomus/smbj/connection/a;

    invoke-virtual {v0, v6}, Lcom/hierynomus/smbj/connection/a;->b(Lcom/hierynomus/smbj/smb2/d;)Ljava/util/concurrent/Future;

    move-result-object v0

    .line 3
    sget-object v1, Lcom/hierynomus/smbj/transport/TransportException;->Wrapper:Les/fd0;

    invoke-static {v0, v1}, Les/gd0;->a(Ljava/util/concurrent/Future;Les/fd0;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/hierynomus/smbj/smb2/d;

    .line 4
    invoke-virtual {v0}, Lcom/hierynomus/smbj/smb2/d;->a()Lcom/hierynomus/smbj/smb2/c;

    move-result-object v1

    invoke-virtual {v1}, Lcom/hierynomus/smbj/smb2/c;->f()Lcom/hierynomus/mserref/NtStatus;

    move-result-object v1

    invoke-virtual {v1}, Lcom/hierynomus/mserref/NtStatus;->isSuccess()Z

    move-result v1

    if-eqz v1, :cond_0

    .line 5
    invoke-virtual {p1}, Les/wd0;->b()V

    .line 6
    iget-object v2, p0, Les/xd0;->c:Les/qd0;

    invoke-virtual {v2}, Les/qd0;->b()J

    move-result-wide v3

    iget-wide v5, p0, Les/xd0;->a:J

    iget-object v7, p0, Les/xd0;->b:Lcom/hierynomus/smbj/common/c;

    invoke-virtual/range {v2 .. v7}, Les/qd0;->a(JJLcom/hierynomus/smbj/common/c;)V

    return-void

    .line 7
    :cond_0
    new-instance p1, Lcom/hierynomus/smbj/common/SMBApiException;

    invoke-virtual {v0}, Lcom/hierynomus/smbj/smb2/d;->a()Lcom/hierynomus/smbj/smb2/c;

    move-result-object v0

    invoke-virtual {v0}, Lcom/hierynomus/smbj/smb2/c;->f()Lcom/hierynomus/mserref/NtStatus;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "Error closing connection to "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v2, p0, Les/xd0;->b:Lcom/hierynomus/smbj/common/c;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-direct {p1, v0, v1}, Lcom/hierynomus/smbj/common/SMBApiException;-><init>(Lcom/hierynomus/mserref/NtStatus;Ljava/lang/String;)V

    throw p1
.end method

.method public b()J
    .locals 2

    .line 1
    iget-wide v0, p0, Les/xd0;->a:J

    return-wide v0
.end method

.method b(Les/wd0;)V
    .locals 0

    return-void
.end method
